package com.sdy.dcsb.biz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mysql.cj.protocol.x.Notice;
import com.sdy.dcsb.biz.mapper.EsbProviderTreeMapper;
import com.sdy.dcsb.biz.model.EsbProviderTree;
import com.sdy.dcsb.biz.model.EsbServiceTree;
import com.sdy.dcsb.biz.model.EsbSystem;
import com.sdy.dcsb.biz.service.EsbProviderTreeService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: sdy-dcsb
 * @author: Lx
 * @create: 2019-09-24
 */
@Slf4j
@Service
public class EsbProviderTreeServiceImpl extends BaseServiceImpl<EsbProviderTree> implements EsbProviderTreeService {
    @Autowired
    private EsbProviderTreeMapper servProviderTreeMapper;


    @Override
    public List<EsbSystem> selecetAllMess() {

        return servProviderTreeMapper.selectAllProvider();
    }


    @Override
    public EsbProviderTree selectByName(String name) {

        return servProviderTreeMapper.selectByName(name);
    }

    @Override
    public EsbProviderTree selectParetDir() {
        return servProviderTreeMapper.selectParetMenu();
    }

    @Override
    public List<EsbProviderTree> selectTwoDir(Integer id) {
        return servProviderTreeMapper.selectTwoMenu(id);
    }

    @Override
    public List<EsbProviderTree> selectThreeDir(Integer id) {
        return servProviderTreeMapper.selectThreeMenu(id);
    }




}